package com.example.universitylibraryback.mapper;

import com.example.universitylibraryback.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface BookMapper {
    List<Book> findAll();
    Book findById(String bookId);
    Book findByIsbn(String isbn);
    List<Book> findByTitle(String title);
    List<Book> findByAuthor(String author);
    List<Book> findAvailableBooks();
    int insert(Book book);
    int update(Book book);
    int delete(String bookId);
    int updateBookStatus(String bookId, String status);
}